package com.sinitek.demo.report.service.impl;

import com.sinitek.demo.report.entity.Administrator;
import com.sinitek.demo.report.mapper.AdministratorMapper;
import com.sinitek.demo.report.service.IAdministratorService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 王志华
 * @date 2021/7/2
 */
@Service
public class AdministratorServiceImpl implements IAdministratorService {
    @Autowired
    private AdministratorMapper administratorMapper;

    @Override
    public List<Administrator> findAdministrators() {
        return administratorMapper.findAdministrators();
    }

    @Override
    public Administrator getAdministratorById(Long id) {
        return administratorMapper.getAdministratorById(id);
    }
}
